<%@page import="helpers.StringHelper"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="entities.GoogleAdsense"%>
<%
GoogleAdsense googleAdsense = (GoogleAdsense) request.getAttribute("googleAdsense");

//Set content for Seo
String title = "Adsense Account Id " + googleAdsense.getAdsAccount() + " Information";
String description = "Site same using adsense Id " + googleAdsense.getAdsAccount() + ": " + StringHelper.listToString(googleAdsense.getDomains(), ", ", 6);
String keywords = googleAdsense.getAdsAccount() + ", google adsense, adsense, adsense analysis, check adsense, site adsense, same adsense, website tool, check tool";
String url = UrlHelper.getServerUrl(request) + "/adsense/" + googleAdsense.getAdsAccount();
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

	<script type="text/javascript" src="/js/about_us.js"></script>
	
	<div id="content">
		<jsp:include page="/elements/search_bar.jsp" />
		
		<div class="row">
			<!-- Left Content BEGIN -->
			<div class="span9">
				<section class="static-page">
					<div class="box1 block">
						<h3 class="title">Adsense Account Id: <%=googleAdsense.getAdsAccount() %></h3>
						<div class="adv left">
							<script type="text/javascript"><!--
							google_ad_client = "ca-pub-4975603569119809";
							/* showdomain 468x15 */
							google_ad_slot = "8143908917";
							google_ad_width = 468;
							google_ad_height = 15;
							//-->
							</script>
							<script type="text/javascript"
							src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
							</script>
						</div>
						<div class="row-fluid f-info">
							<div class="span12">
								<h5>Site Same Using Adsense ID: <%=googleAdsense.getAdsAccount() %></h5>
								<ul class="list-domain horizontal clearfix">
									<%
									List<String> domains = googleAdsense.getDomains();
									for (int i = 0; i < domains.size(); i++) {
									%>
									<li><a href="/domain/<%=domains.get(i)%>"><%=domains.get(i)%></a></li>
										<% if (i == 7) { %>
										</ul>
											<div class="adv">
												<script type="text/javascript"><!--
												google_ad_client = "ca-pub-4975603569119809";
												/* showdomain 468x60 */
												google_ad_slot = "3934035319";
												google_ad_width = 468;
												google_ad_height = 60;
												//-->
												</script>
												<script type="text/javascript"
												src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
												</script>
											</div>
										<ul class="list-domain horizontal clearfix">
										<% } %>
									<% } %>
								</ul>
							</div>
						</div>
					</div>
				</section>
			</div>
			<!-- Left Content END -->
			
			<jsp:include page="/elements/right.jsp" />
		</div>
		
		
	</div>
		
<jsp:include page="/layouts/footer.jsp" />